﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Microsoft.Xna.Framework;

namespace _MetalSlug
{
    public class ConfigXML
    {
        private XmlDocument doc;
        private XmlElement root; 
        public ConfigXML(string filepath)
        {
            doc = new XmlDocument();  
            try
            {
              
                doc.Load(filepath);
                root = (XmlElement)doc.DocumentElement;
            }
            catch (Exception)
            {
                
                throw;
            }        
        }
        public string getBackGround()
        {
            return root.SelectSingleNode("background/texture").InnerText; 
        }

        public XmlNodeList getTotalButton()
        {
           return root.SelectNodes("buttons/child::*");
        }

        public string getLogo()
        {
            return root.SelectSingleNode("logo/texture").InnerText; 
        }
      
    }
}
